package top.maof.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import top.maof.book.model.User;
import top.maof.book.result.PageData;
import top.maof.book.result.PageWrap;

/**
 * Created by CodeX4J.
 */
@Service
public interface UserService extends IService<User> {
    public PageData<User> findPage(PageWrap<User> pageWrap);

    public int add(User user);

    public User find(int id);

    public int update(User user);

    public int delete(int id);

    public User getWithRole(int id);

    public User selectByUsername(String username);

    public User selectByUEP(String username, String email, String phoneNumber);
}
